Ext.onReady(function(){
	//初始化Extjs   
    Ext.QuickTips.init();   
    Ext.BLANK_IMAGE_URL ='script/resources/images/default/s.gif';   
	
	var store = new Ext.data.JsonReader({
		url:'',
		autoLoad:true
	});
	
	var rowNumber = new Ext.grid.RowNumberer({header:'序号',width:30});
	var sm = new Ext.grid.CheckboxSelectionModel();//显示选择框
	var cm = new Ext.grid.ColumnModel([
		rowNumber,
		sm,
	    { header: "姓名", width: 100, sortable: true,dataIndex:'staff_name'},
	    { header: "登录工号", width: 100, sortable: true,dataIndex:'login_name'},
	    { header: "性别", width: 100, sortable: true,dataIndex:'staff_male'},
	    { header: "学历", width: 100, sortable: true,dataIndex:'degree_id'},
	    { header: "部门", width: 100, sortable: true,dataIndex:'dept_id'},
	    { header: "联系电话", width: 100, sortable: true,dataIndex:'relate_nbr'},
	    { header: "联系邮件", width: 100, sortable: true,dataIndex:'relate_mail'},
	    { header: "入职时间", width: 100, sortable: true,dataIndex:'hire_date'},
	    { header: "手机号", width: 100, sortable: true,dataIndex:'relate_tel'},
	    { header: "备注", width: 100, sortable: true,dataIndex:'note'},
	    { header: "角色", width: 100, sortable: true,dataIndex:'role_id'}
 	]);

	var grid = new Ext.grid.GridPanel({
		store:store,
		cm:cm,
		sm:sm,
		title:'员工管理',
		renderTo:'queryResult'
	});
});